package com.ljf.authority.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 按钮明细对象  authority_base_button_detail
 *
 * @author LJF
 * @since 2024-10-20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("按钮明细")
@EqualsAndHashCode(callSuper = true)
@TableName("authority_base_button_detail")
public class AuthorityBaseButtonDetail extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link AuthorityBaseButtonDetail#COL_ID}
	 */
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(60)
	 * 注释: 编码
	 * {@link AuthorityBaseButtonDetail#COL_CODE}
	 */
	@TableField("code")
	@JsonProperty("code")
	@ApiModelProperty(value = "编码")
	private String code;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(20)
	 * 注释: 点击方法
	 * {@link AuthorityBaseButtonDetail#COL_CLICK_FUNCTION}
	 */
	@TableField("click_function")
	@JsonProperty("clickFunction")
	@ApiModelProperty(value = "点击方法")
	private String clickFunction;

	/**
	 * Java类型: Integer
	 * 数据库类型: int
	 * 注释: 宽度(px)
	 * {@link AuthorityBaseButtonDetail#COL_WIDTH}
	 */
	@TableField("width")
	@JsonProperty("width")
	@ApiModelProperty(value = "宽度(px)")
	private Integer width;


	/**
	 * ID
	 * {@link AuthorityBaseButtonDetail#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 编码
	 * {@link AuthorityBaseButtonDetail#code}
	 */
	public static final String COL_CODE = "code";
	/**
	 * 点击方法
	 * {@link AuthorityBaseButtonDetail#clickFunction}
	 */
	public static final String COL_CLICK_FUNCTION = "click_function";
	/**
	 * 宽度(px)
	 * {@link AuthorityBaseButtonDetail#width}
	 */
	public static final String COL_WIDTH = "width";

}
